package com.example.ymm.dto;

public enum HttpStatus {
    NO_LIGIN("999"),
    KILL_LOGIN("997"),
    FREQUENTLY("506"),
    NOBINDPHONE("508"),
    SUCCESS("200"),
    ERROR_01("-1"),
    ERROR_02("-2"),
    ERROR_400("400"),
    DENY("403"),
    OUT_LOGIN("666"),;

    private String status;
    public String getStatus(){
        return this.status;
    }
    HttpStatus(String status){
        this.status = status;
    }

    public String toString(){  //覆盖了父类Enum的toString()
        return status;
    }

    public void setType(String status) {
        this.status = status;
    }

    public static void main(String args[]){
        System.out.println(HttpStatus.NO_LIGIN);
    }
}
